package com.itheima.service.mongo;

import com.itheima.domain.mongo.Movement;
import com.itheima.vo.PageBeanVo;
import org.bson.types.ObjectId;

public interface MovementService {
    //保存动态
    void save(Movement movement);

    //分页查看我的动态
    PageBeanVo findMyMovementByPage(Long userId,Integer pageNum,Integer pageSize);

    //分页查看好友动态
    PageBeanVo findFriendMovementByPage(Long userId,Integer pageNum,Integer pageSize);

    //分页查看推荐动态
    PageBeanVo findRecommendMovementByPage(Long userId,Integer pageNum,Integer pageSize);

    Movement findById(ObjectId publishId);

    //查询动态(userId有可能为空,state有可能为空)
    PageBeanVo findMovementByPage(Long userId,Integer state,Integer pageNum,Integer pageSize);

    void update(Movement movement);
}
